-- GENERATED SPELL FOR [Myst Spinner] --


function spell0_17522(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17522', 5303, 1)
end

function Sorts_17522(pUnit, Event)
local choix_sorts_17522 = math.random(0, 0)
if choix_sorts_17522 == 0 then
pUnit:RegisterEvent('spell0_17522', 1, 1)
end
end

function mob17522_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17522', math.random(1500, 3000), 1)
end

function mob17522_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17522_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17522_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17522, 1, 'mob17522_Action')
RegisterUnitEvent(17522, 2, 'mob17522_Leave')
RegisterUnitEvent(17522, 3, 'mob17522_Kill')
RegisterUnitEvent(17522, 4, 'mob17522_Die')
